<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% String contexts = request.getContextPath();
    pageContext.setAttribute("ctx", contexts);
%>
<html>

<link type="text/css" rel="stylesheet" href="${ctx}/css/login/userData/addUserData.css">
<link rel="stylesheet" href="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script type="text/javascript" src="${ctx}/js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="${ctx}/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${ctx}/js/login/userData/addUserData.js"></script>
<body>
<div id="returnList">
    <div id="div_addUserData">
        <div align="center"><h2>添加用户资料</h2></div>

        <s:form class="form-horizontal" id="addUserData" action="addUserData" role="form" namespace="/" method="POST" enctype="multipart/form-data">
            <div class="form-group" id="div_userName">
                <label for="inputUserName" class="col-sm-2 control-label">姓名 :</label>

                <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputUserName" name="userDataVO.userName"
                           placeholder="请输入你的真实姓名...">
                </div>
            </div>


            <div class="form-group" id="div_userImg">
                <label for="inputUserImg" class="col-sm-2 control-label">头像 :</label>

                <div class="col-sm-10">
                    <input type="hidden" id="inputUserImg" name="userDataVO.userImage">
                    <input type="hidden" name="imgFileType" >
                    <input type="file" name="imgFile" id="imgFile" >
                </div>
            </div>

            <div class="form-group" id="div_nationality">
                <label for="inputNationality" class="col-sm-2 control-label">国籍 :</label>

                <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputNationality" name="userDataVO.nationality"
                           placeholder="请输入你所属国籍...">
                </div>
            </div>

            <div class="form-group" id="div_province">
                <label for="inputProvince" class="col-sm-2 control-label">省份 :</label>

                <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputProvince" name="userDataVO.province"
                           placeholder="请输入你所属省份...">
                </div>
            </div>

            <div id="eMessage"></div>

            <div class="form-group" id="div_submit">
                <div class="col-sm-offset-2 col-sm-10">
                    <button id="div_submit_val" type="button" class="btn btn-default" onclick="addUserDataSubmit()">确定
                    </button>
                </div>
            </div>
        </s:form>
    </div>
</div>
</body>
</html>